<?php
/**
 * Created by PhpStorm.
 * User: Fight.节奏
 * Date: 2016/8/3
 * Time: 21:30
 */
//获取顶级分类
$cateModel=new \Common\Model\Cate();
$topCate=$cateModel->where("pid=0")->orderBy('csort','ASC')->get();
?>
<body>
<div class="ibody">
    <header>
        <h1>MY_Blog</h1>
        <h2>钢琴上黑白之间、永远都夹着空白、缺了一块就不精彩....</h2>
        <div class="logo"><a href="index.html"></a></div>
        <nav id="topnav">
            <a href="index.html">首页</a>
            {{foreach from="$topCate" value="$u"}}
            <a href="c_{{$u['cid']}}.html">{{$u['cname']}}</a>
            {{endforeach}}
        </nav>
    </header>
